package timer;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Timer;

/**
 * Created by Administrator on 2017/7/12 0012.
 */
public class test {

    static{
        PropertyConfigurator.configure("src/resource/log4j.properties");//指定日志配置文件
    }
    static Logger logger = Logger.getLogger(test.class.getName());      //指定触发日志class

    public static void main(String[] args) {
        //logger.setLevel(Log4jLevel.DEBUG);
        logger.info("info:消息推送");
        logger.debug("debug:debug推送);
        logger.error("error:错误发生");
    }

}
